import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Introduction from '../components/Introduction.vue'
import Login from '../components/Login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path:'/intro',
    name:'Introduction',
    component: Introduction
  },
  {
    path:'/login',
    name:'Login',
    component: Login
  }
  
]

const router = new VueRouter({
  routes
})

export default router
